package com.xjgzinfo.usdp.core.domain;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author jinxw
 */
public class lovCodeDTO implements Serializable {
    /**
     * 序号
     */
    Long orderSeq;
    /**
     * 中文
     */
    String meaning;
    /**
     * 值代码
     */
    String value;

    public lovCodeDTO(Long orderSeq, String meaning, String value) {
        this.orderSeq = orderSeq;
        this.meaning = meaning;
        this.value = value;
    }

    public Long getOrderSeq() {
        return orderSeq;
    }

    public void setOrderSeq(Long orderSeq) {
        this.orderSeq = orderSeq;
    }

    public String getMeaning() {
        return meaning;
    }

    public void setMeaning(String meaning) {
        this.meaning = meaning;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        lovCodeDTO that = (lovCodeDTO) o;
        return Objects.equals(orderSeq, that.orderSeq) &&
                Objects.equals(meaning, that.meaning) &&
                Objects.equals(value, that.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orderSeq, meaning, value);
    }

    @Override
    public String toString() {
        return "lovCodeDTO{" +
                "orderSeq=" + orderSeq +
                ", meaning='" + meaning + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}
